package com.cf.invoker.http.server;

import java.lang.reflect.Method;
import java.util.List;

/****
 *
 * @Author zhu-mingming
 * @Description
 * @Date 2018/10/23
 *
 **/

public class ServiceMeta {

    private String key;

    private Method method;

    private Object methodParentBean;

    private List<Class<?>> argumentTypes;

    private Class<?> responseType;

    private boolean hasReturn;

    private boolean hasArguments;

    public Object getMethodParentBean() {
        return methodParentBean;
    }

    public ServiceMeta setMethodParentBean(Object methodParentBean) {
        this.methodParentBean = methodParentBean;
        return this;
    }

    public String getKey() {
        return key;
    }

    public ServiceMeta setKey(String key) {
        this.key = key;
        return this;
    }

    public Method getMethod() {
        return method;
    }

    public ServiceMeta setMethod(Method method) {
        this.method = method;
        return this;
    }

    public List<Class<?>> getArgumentTypes() {
        return argumentTypes;
    }

    public ServiceMeta setArgumentTypes(List<Class<?>> argumentTypes) {
        this.argumentTypes = argumentTypes;
        return this;
    }

    public Class<?> getResponseType() {
        return responseType;
    }

    public ServiceMeta setResponseType(Class<?> responseType) {
        this.responseType = responseType;
        return this;
    }

    public boolean isHasReturn() {
        return hasReturn;
    }

    public ServiceMeta setHasReturn(boolean hasReturn) {
        this.hasReturn = hasReturn;
        return this;
    }

    public boolean isHasArguments() {
        return hasArguments;
    }

    public ServiceMeta setHasArguments(boolean hasArguments) {
        this.hasArguments = hasArguments;
        return this;
    }
}
